<<<<<<< .mine
<%#@advertisments.each do |ad| %>
  <%#*<h1> <%=h ad.title -%><!--</h1>%>-->
  <%#*<br>%>
  <%#=h ad.description -%>
  <%#*<hr/>%>
<%#end%>
<%#=render :partial => "layouts/paginator", :locals => {:entities => @advertisments} -%>


  <%if params["group"] != nil %>
    <% @ad =@search_group.categories%>
    <% @ad.each do |t|%>
  <%# viewname =t.name.gsub(" ","_") %>
  <div style="float:left;padding:5px;width:30%"><%= link_to(t.name,{:controller => "listings"  , :id=>t.id})%> </div>
 <%end%>
 <div style="clear:both"></div>


 <h1><U><%= h @categories.name %></U></h1>

  <% @add.each do |ad| %>
  <br />
  <div style="border:2px solid">
    <h2> <%=h ad.created_at.to_formatted_s(:long_ordinal) -%> </h2>
    <h1> <%=h ad.title -%></h1>
    <h2> <%=h ad.location -%> </h2>
    <br>
    <%=h excerpt(ad.description , ' ', 300) -%>
    <p>
  </div>
  <%end%>
<%end%>

 <%=render :partial => "layouts/paginator", :locals => {:entities => @add} -%>=======
<%#@advertisments.each do |ad| %>
  <%#*<h1> <%=h ad.title -%><!--</h1>%>-->
  <%#*<br>%>
  <%#=h ad.description -%>
  <%#*<hr/>%>
<%#end%>
<%#=render :partial => "layouts/paginator", :locals => {:entities => @advertisments} -%>

<%#*>>>>>>> .r20%>
